import Vue from "vue";
import VueRouter from "vue-router";
import Detail from "./Detail.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Detail",
    component: Detail,
    children:[{
      path:"/detail",
      name:"detail",
      component:Detail
    }]
  },
  
];

const router = new VueRouter({
  routes,
});

export default router;
